//
//  HBUserCenterModel.h
//  HeartBeat
//
//  Created by karong on 2023/8/23.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
@interface GRUserModel : NSObject
///用戶ID
@property (nonatomic, assign) NSInteger id;
///用戶暱稱
@property (nonatomic, strong) NSString * user_name;
///用戶綁定的三方賬號
@property (nonatomic, strong) NSString * bind_third_info;
///token令牌
@property (nonatomic, strong) NSString * token;
///签名
@property (nonatomic, strong) NSString * sign;
///生日
@property (nonatomic, strong) NSString * birthday;
///頭像
@property (nonatomic, strong) NSString * avatar;
///性別 1-男 2-女
@property (nonatomic, assign) NSInteger sex;
///可用金币數量
@property (nonatomic, assign) NSInteger coins;
///是否锁定 0-正常，1-锁定, 2-注销
@property (nonatomic, assign) NSInteger status;
///會员狀態 0-不是會员 1-會员 2-會员已过期
@property (nonatomic, assign) NSInteger vip_status;
///會员过期時間戳
@property (nonatomic, assign) NSTimeInterval vip_expires_time;
///會员过期時間字符串
@property (nonatomic, strong) NSString * vip_expires_text;
///會員剩餘天數
@property (nonatomic, assign) NSInteger vip_expires_days;
///一个月會员费用
@property (nonatomic, assign) CGFloat vip_month_amount;
///會员注册天數
@property (nonatomic, assign) NSInteger reg_days;
///書架數
@property (nonatomic, assign) NSInteger user_bookshelf_total;
///閱讀數
@property (nonatomic, assign) NSInteger user_read_total;
///評論數
@property (nonatomic, assign) NSInteger user_comment_total;
///是否作者 0-不是 1-是
@property (nonatomic, assign) BOOL is_author;
///是否首次注册 0-不是 1-是
@property (nonatomic, assign) BOOL is_new;

@end
@interface HBUserCenterModel : GRUserModel
+ (instancetype)defaultSession;

@property (nonatomic, strong) NSString * qtoken;
@property (nonatomic, assign, readonly, getter=isLogin) BOOL login;

+(NSString *)uuid;

- (void)logIn:(HBUserCenterModel *)userCenter;
- (void)logOut;
- (void)save;

- (void)getUserInfoRequest;
@end

NS_ASSUME_NONNULL_END
